package com.nineclock.api.document;

import com.nineclock.common.entity.PageResult;
import com.nineclock.common.entity.Result;
import com.nineclock.document.dto.DocFileDto;
import com.nineclock.document.dto.DocFileHistoryDto;
import com.nineclock.document.dto.DocFolderDto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api(value = "文档接口管理", tags = "文档服务")
public interface DocumentControllerApi {

    @ApiOperation(value = "分页查询查询文件列表")
    Result<PageResult<DocFileDto>> QueryDocumentList(Integer page, Integer pageSize, String keyword);

    @ApiOperation(value = "封禁/解封文件" ,tags = "文档服务")
    Result update(Long id, Short status);

    @ApiOperation(value = "查看历史操作" ,tags = "文档服务")
    Result<List<DocFileHistoryDto>> QueryHistoryOperation(Long fileId);

    @ApiOperation(value ="新增文件夹")
    public Result createFolder(DocFolderDto docFolderDto);


}
